import { createStore } from 'vuex'

export default createStore({
  state: {
    demo: 'state'
  },
  getters: {
    get_demo: state => {
      return state.demo
    }
  },
  mutations: {
    mutations_demo(state, data){
      state.demo+=data
    }
  },
  actions: {
    action_Demo({commit}, data){
      data+='action'
      commit('mutations_demo', data)
    } 
  },
  modules: {
  }
})
